home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Windows 95 Programs / Over 1000 Windows 95 Programs (Microforum) (Disc 2).iso / 0179 / tcnstall.bat < prev    next >
DOS Batch File  |  1997-03-25  |  7KB  |  219 lines

  1. @echo off     
  2. if "%1" == "" goto explain
  3. if "%1" == "?" goto explain
  4. goto install
  5. :explain     
  6. cls
  7. echo OPERATION OF TCNSTALL.BAT
  8. echo.
  9. echo This batch file installs files needed to run the Windows Version of the
  10. echo TCN program.
  11. echo.
  12. echo Since you specified either no options or the ? option, no installation
  13. echo will be performed this time.  Instead, information is displayed.
  14. echo.
  15. echo When you have learned how to use this batch file, you can try again with
  16. echo the appropriate option to install the TCN program.
  17. echo.
  18. pause
  19. cls
  20. echo TCNSTALL.BAT vs SETUP.EXE
  21. echo.
  22. echo.
  23. echo FYI, TCNSTALL places: 
  24. echo.
  25. echo     TCNSETUP.EXE,
  26. echo     VER.DLL, SETUPKIT.DLL, VBRUN300.DLL, and
  27. echo     the TCN program files 
  28. echo.
  29. echo in the same target directory.  
  30. echo.
  31. echo.
  32. echo This is as opposed to SETUP.EXE which puts 
  33. echo.
  34. echo     TCNSETUP.EXE in the WINDOWS directory, 
  35. echo     VER.DLL, SETUPKIT.DLL, VBRUN300.DLL in the WINDOWS\SYSTEM directory, and 
  36. echo     the TCN program files in the install directory you specify.
  37. echo.
  38. pause
  39. cls
  40. echo MANUAL COMMANDS FOR DISKETTE COPIES
  41. echo.
  42. echo.
  43. echo NOTE:  The following procedure uses C:\USA as the target directory.  You
  44. echo        can use any valid drive and path where sufficient disk room (2.0
  45. echo        megs) is available.
  46. echo.
  47. echo You can accomplish the same thing that TCNSTALL.BAT does by using the 
  48. echo following commands entered at the DOS prompt:
  49. echo.
  50. echo EXPAND VBRUN300.DL_ C:\USA\VBRUN300.DLL       (press ENTER)
  51. echo EXPAND SETUPKIT.DL_ C:\USA\SETUPKIT.DLL       (press ENTER)
  52. echo EXPAND TCNSETUP.EX_ C:\USA\TCNSETUP.EXE       (press ENTER)
  53. echo RENAME TCN34WIN.EX_ TCN34WIN.EXE              (press ENTER)
  54. echo TCN34WIN C:\USA                               (press ENTER)
  55. echo RENAME TCN34WIN.EXE TCN34WIN.EX_              (press ENTER)
  56. echo COPY VER.DL_ C:\USA\VER.DLL                   (press ENTER)
  57. echo.
  58. echo NOTE:  The preceding commands assume that the current drive and directory 
  59. echo        is where the source files are located.
  60. echo.
  61. pause
  62. cls
  63. echo MANUAL COMMANDS FOR BBS DOWNLOADS
  64. echo.
  65. echo If you download a copy of the TCN program, three file names are likely to
  66. echo be different:
  67. echo.
  68. echo VER.DL_ should be VER.DLL
  69. echo.
  70. echo SETUPKIT.DL_ should be SETUPKIT.DLL
  71. echo.
  72. echo VBRUN300.DL_ can be VBRUN300.ZIP or almost anything.
  73. echo.
  74. echo Use the following commands for VER.DLL and SETUPKIT.DLL:
  75. echo.
  76. echo COPY VER.DLL      C:\USA\VER.DLL
  77. echo COPY SETUPKIT.DLL C:\USA\SETUPKIT.DLL
  78. echo.
  79. echo If the VBRUN300.*** file does not have the .DL_ extension, use the 
  80. echo appropriate unzip command.
  81. echo.
  82. pause
  83. cls
  84. echo ICON CREATION, STARTING WITH NO ICON
  85. echo.
  86. echo Following the use of manual commands or the TCNSTALL.BAT file, you can 
  87. echo start the TCN program from Windows File Manager by double clicking on the 
  88. echo TCN.EXE icon in the target directory you specified.  
  89. echo.
  90. echo Or you can use TCNSETUP.EXE to create the icon.  
  91. echo.
  92. echo When TCNSETUP.EXE prompts you for the install directory, specify the same 
  93. echo path you used as the option for TCNSTALL.BAT.  When TCNSETUP.EXE detects 
  94. echo the TCN program already installed there, it will offer you the option of 
  95. echo "Create Icon Only?"  Click yes.
  96. echo.
  97. pause
  98. cls
  99. echo RUNNING TCNSTALL.BAT
  100. echo.
  101. echo To run TCNSTALL.BAT, you need to know two things.
  102. echo.
  103. echo First, be sure that the drive and directory that contains TCNSTALL.BAT
  104. echo and all the appropriate source files is the current drive and directory. 
  105. echo Otherwise, you get an error message instead of an installation.
  106. echo.
  107. echo Second, TCNSTALL.BAT requires a single option, that being the target
  108. echo drive and path information, no trailing backslash allowed.
  109. echo.
  110. echo EXAMPLE, to install the TCN program on the C: drive in the USA directory,
  111. echo use the following command:
  112. echo.
  113. echo.
  114. echo TCNSTALL C:\USA      (press ENTER)
  115. echo.
  116. echo.
  117. echo That's it.  Now get busy and install the TCN program so you can study the
  118. echo Constitution and save the country!
  119. echo.
  120. goto end
  121. :install
  122. cls
  123. echo Checking source files . . .
  124. if not exist VBRUN300.* goto error
  125. if not exist VER.DL_ if not exist VER.DLL goto error
  126. if not exist SETUPKIT.DL_ if not exist SETUPKIT.DLL goto error
  127. if not exist TCNSETUP.EX_ if not exist TCNSETUP.EXE goto error
  128. if not exist TCN34WIN.EX_ if not exist TCN34WIN.EXE goto error
  129. echo.
  130. echo Installing . . .
  131. if exist TCN34win.ex_ goto rename1
  132. goto chk2
  133. :rename1
  134. echo on
  135. RENAME TCN34WIN.EX_ TCN34WIN.EXE
  136. @ECHO OFF
  137. :chk2
  138. @ECHO ON
  139. TCN34WIN %1
  140. RENAME TCN34WIN.EXE TCN34WIN.EX_
  141. @echo off
  142. IF EXIST VER.DL_ goto copy1
  143. goto chk3
  144. :copy1
  145. echo on
  146. COPY VER.DL_ %1\VER.DLL
  147. :chk3
  148. @echo off
  149. IF EXIST VER.DLL goto copy2
  150. goto chk4
  151. :copy2
  152. echo on
  153. COPY VER.DLL %1\VER.DLL
  154. :chk4
  155. @echo off
  156. IF EXIST SETUPKIT.DL_ goto expand2
  157. goto chk5
  158. :expand2
  159. echo on
  160. EXPAND SETUPKIT.DL_ %1\SETUPKIT.DLL
  161. :chk5
  162. @echo off
  163. IF EXIST SETUPKIT.DLL goto copy3
  164. goto chk6
  165. :copy3
  166. echo on
  167. COPY SETUPKIT.DLL %1\SETUPKIT.DLL
  168. :chk6
  169. @echo off
  170. if exist vbrun300.dl_ goto expand3
  171. goto chk7
  172. :expand3
  173. echo on
  174. EXPAND VBRUN300.DL_ %1\VBRUN300.DLL
  175. :chk7
  176. @echo off
  177. if exist TCNSETUP.EX_ goto expand4
  178. goto chk8
  179. :expand4
  180. echo on
  181. EXPAND TCNSETUP.EX_ %1\TCNSETUP.EXE
  182. :chk8
  183. @echo off
  184. if exist TCNSETUP.EXE GOTO COPY4
  185. GOTO CHK9
  186. :COPY4
  187. ECHO ON
  188. COPY TCNSETUP.EXE %1\TCNSETUP.EXE
  189. :CHK9
  190. @ECHO OFF
  191. if exist %1\vbrun300.dll GOTO END
  192. ECHO.
  193. echo VBRUN300.DLL must be created in directory %1
  194. goto end
  195. :error
  196. echo.
  197. echo Source file error detected.
  198. echo.
  199. echo The following source files were not found:
  200. echo.
  201. if not exist VBRUN300.DL_ echo      VBRUN300.DL_
  202. if not exist VER.DL_ if not exist VER.DLL echo      VER.DL_
  203. if not exist SETUPKIT.DL_ if not exist SETUPKIT.DLL echo      SETUPKIT.DL_
  204. if not exist TCNSETUP.EX_ if not exist TCNSETUP.EXE echo      TCNSETUP.EX_
  205. if not exist TCN34WIN.EX_ if not exist TCN34WIN.EXE echo      TCN34WIN.EX_ 
  206. echo.
  207. echo If 5 files are listed, make the current drive and directory be the drive 
  208. echo and directory where those files are located.  If only one or two files
  209. echo are listed, try to get them.  
  210. echo.
  211. echo If VBRUN300.DL_ is the missing file and you already have VBRUN300.DLL
  212. echo on your machine, try to manually expand or copy the other files.
  213. echo.
  214. echo If all else fails, order a trial copy of the TCN program from TCNbP 
  215. echo Company, PO Box 516, Olla, LA 71465.  The price is $10.00 US.  Please 
  216. echo contact your dealer about the problem or provide dealer contact 
  217. echo information when ordering.
  218. :end
  219.